settings: Avoid a crash
authorMatthias Clasen <mclasen@redhat.com>
Thu, 5 May 2016 17:30:55 +0000 (13:30 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 5 May 2016 17:32:58 +0000 (13:32 -0400)
commitfe7be14db8efb08e72e22f60c2640cdc1fdfcd6e
treef4bfad2bac56be69e83f71a7a457c4e3a6f07269
parentc14572fdae9bf6d34cd6af35dc572c509f1ae144
settings: Avoid a crash

Christian Hergert reported seeing webkit crashes with recent
GTK+. The stacktrace points at the CSS machinery calling into
GtkSettings to get the font name, and then getting surprised
by a property notification that triggers style validation.

To avoid this, query the font name xsetting right away when
we get set a screen.
gtk/gtksettings.c